using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmPrePurchaseRequestFile")]
    public class PrePurchaseRequestFile
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PprFileId", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public int PprFileId { get; set; }

		[DataMember, Display(Name = "FileName", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public string FileName { get; set; }

		[DataMember, Display(Name = "FilePath", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public string FilePath { get; set; }

		[DataMember, Display(Name = "FileType", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public string FileType { get; set; }

		[DataMember, Display(Name = "FileExtension", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public string FileExtension { get; set; }

        [ForeignKey("PrePurchaseRequest")]
		[DataMember, Display(Name = "PprId", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public Nullable<int> PprId { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrePurchaseRequestFileResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual PrePurchaseRequest PrePurchaseRequest { get; set; }

        //public virtual IcmPpr IcmPpr { get; set; }

    }
}